﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonTools;
using FreeSql.DataAnnotations;

namespace shop.Model
{
    /// <summary> 货币 </summary>
    public class JCurrency : IFastTree
    {
        [Column(IsPrimary =true, IsIdentity =true)]
        public int ID { get; set; }

        /// <summary> 代码 </summary>
        [VarChar(30)]
        public string Code { get; set; }

        /// <summary> 简码 </summary>
        [VarChar(30)]
        public string Shortcode { get; set; }


        /// <summary> 名称 </summary>
        [Column(StringLength = 50)]
        public string Name { get; set; }

        /// <summary> 中文名称 </summary>
        [Column(StringLength = 50)]
        public string Name_cn { get; set; }

        /// <summary> 英文名称 </summary>
        [Column(StringLength =50)]
        public string Name_en { get; set; }

        /// <summary> 印尼文名称 </summary>
        [Column(StringLength =50)]
        public string Name_id { get; set; }

        /// <summary> 汇率 </summary>
        [Column(Precision =18, Scale =4)]
        public decimal ExchangeRate { set; get; }

        /// <summary> 是否明细 </summary>
        public bool IsDetails { get; set; }

        public bool Isdel { get; set; }


        public DateTime? ModifyTime { get; set; }

        [Column(StringLength =50)]
        public string PreparedBy { get; set; }

        public bool IsCheck { get; set; }

        [Column(StringLength =50)]
        public string Checker { get; set; }

        public DateTime? CheckDate { get; set; }


        [Column(IsIgnore =true)]
        public string NodeText => this.Code + " " + this.Name;
    }
}
